﻿<%@ Page Language="C#" MasterPageFile="../MasterPages/MedianamikModule.Master" AutoEventWireup="true" CodeBehind="RoleList.aspx.cs" Inherits="Medianamik.UI.SecurityManagement.RoleList" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
	<a href="RoleManagement.aspx" class="Action BtAjoutRole"><asp:Localize ID="Localize2" runat="server" Text="<%$ Resources: Medianamik_SecurityManagement,AddRole%>"></asp:Localize></a>
	<a href="#" class="Action BtAnnuler-Inactif"><asp:Localize ID="Localize3" runat="server" Text="<%$ Resources: Medianamik_Global,Cancel %>"></asp:Localize></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">

	<telerik:RadGrid runat="server" ID="GridRoles" EnableEmbeddedSkins="false" Skin="Medianamik" 
	AutoGenerateColumns="false"
	OnItemCommand="GridRoles_ItemCommand"
	OnItemDataBound = "GridRoles_ItemDataBound">
		<MasterTableView>
			<Columns>
				<telerik:GridTemplateColumn HeaderText="">
		            <HeaderTemplate><asp:Literal runat="server" Text="<%$ Resources: Medianamik_SecurityManagement, RoleNameColumn %>"></asp:Literal></HeaderTemplate>
		            <ItemTemplate>
		                <img alt="" src="/Medianamik/images/Icones/Ico_Role.png" class="IconesElements" />
		                <%# Eval("Name")%>
		            </ItemTemplate>
		        </telerik:GridTemplateColumn>
		        <telerik:GridTemplateColumn>
		            <HeaderTemplate><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Medianamik_SecurityManagement, RoleDescriptionColumn %>"></asp:Literal></HeaderTemplate>
		            <ItemTemplate>
		                <%# HttpContext.GetGlobalResourceObject("Medianamik_SecurityManagement", "Role_" + (string)Eval("Name"))%>
		            </ItemTemplate>
		        </telerik:GridTemplateColumn>
				<telerik:GridTemplateColumn HeaderStyle-Width="1%" HeaderText="Actions">
					<HeaderStyle HorizontalAlign="Center" />
					<ItemStyle CssClass="Actions" />
					<ItemTemplate>
						<table border="0" cellpadding="0" cellspacing="0" align="center">
							<tr>
								<td><a href="RoleManagement.aspx?name=<%# Eval("Name") %>"><img alt="<%= Resources("Medianamik_Global", "Action_EditTooltip") %>" src="/medianamik/images/Icones/Ico_Edition.gif" alt="" width="16" height="16" /></a></td>
								<td><med:ConfirmedImageButton ID="cmdDelete" title="<%$ Resources: Medianamik_Global, Action_DeleteTooltip %>" CommandArgument='<%# Eval("Name") %>' CommandName="DeleteRole" ImageUrl="/medianamik/images/Icones/Ico_Supprimer.gif" runat="server" ConfirmText="<%$ Resources: Medianamik_SecurityManagement, ConfirmDeleRoleText %>" /></td>
							</tr>
						</table>
					</ItemTemplate>
				</telerik:GridTemplateColumn>
			</Columns>
			<NoRecordsTemplate>
			    <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			</NoRecordsTemplate>
		</MasterTableView>
		<ClientSettings EnableRowHoverStyle="true"></ClientSettings>
	</telerik:RadGrid>

</asp:Content>
